using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MimeCloud.AssetManagement.Business.Interface;
using System.Data.Linq.Mapping;
using System.Data.Linq;

namespace MimeCloud.AssetManagement.DataProvider.Astoria.Entities.Data
{
    [Table(Name="T_AssetContentType")]
    public class AssetContentType
    {
        public AssetContentType()
        {
            this.ID = Int32.MinValue;
        }

        [Column(Name="Description_NVC")]
        public string Description {get;set;}
        [Column(Name="Enabled_BIT")]
        public bool Enabled { get; set; }
        [Column(Name = "Height_DC", DbType = "decimal(8,2)")]
        public decimal Height { get; set; }
        [Column(Name = "AssetContentType_IDPK", IsPrimaryKey = true, IsDbGenerated = true)]
        public int ID { get; set; }
        [Column(Name="Name_NVC")]
        public string Name { get; set; }
        [Column(Name = "Width_DC", DbType = "decimal(8,2)")]
        public decimal Width { get; set; }

        [Column(Name="TypeFunction_IDFK")]
        internal short TypeFunctionID { get; set; }

        [Column(Name="DateModified_DT",IsVersion=true)]
        public DateTime UpdatedDate {get;set;}
        //[Association(ThisKey="TypeFunction_IDFK",Storage="_AssetContentTypeFunction",IsForeignKey=true,DeleteOnNull=false)]
        //private TypeFunction AssetContentTypeFunction {get;set;}
        //private EntityRef<TypeFunction> _AssetContentTypeFunction;
    }
}
